#!/bin/sh

[ "${ACTION}" = "add" ] && [ "${INTERFACE%%[0-9]}" = "ra" ] &&  {
	if [ ! -f /etc/config/wireless ]; then
		need_up=1
	fi
	/sbin/wifi config
	[ "$need_up" = "1" ] && /sbin/wifi up
}
